package cn.hsw.manage.user.service;

import cn.hsw.manage.user.entity.User;
import cn.hsw.manage.user.vo.UserDetailVo;
import cn.hsw.manage.user.vo.UserListVo;
import cn.hsw.manage.user.vo.UserVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李子木
 * @since 2021-11-03 08:55:22
 */
public interface UserService extends IService<User> {

    User selectUserByPhone(String phone);

    void add(UserVO userVO);

    void edit(Long pid, String realName, String remark, String rolePid);

    IPage<UserListVo> findByUserNameAndPhoneLike(String userName, String phone, Page page);

    String resetPassword(Long pid);

    void edit(User user);

    User findByUserName(String userName);

    void deleteByPid(Long pid);

    UserDetailVo findByPid(Long pid);
}
